<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <title></title>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/setcolor.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body id="index_setting">
    <span class="layui-breadcrumb" >
        <a ><cite><i class="fa fa-map-marker"></i>位置</cite></a>
        <a href="<?=site_url('vod/admin/vod')?>">视频</a>
        <a href="">专题页生成</a>
    </span>

    <fieldset class="layui-elem-field">
        <legend>专题列表生成</legend>
        <div class="layui-field-box">
            <form class="layui-form layui-form-pane" action="<?=site_url('vod/admin/html/topic_save')?>" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label">列表生成</label>
					<div class="fl" style="text-align: center;border:0px;">
						<input type="radio" name="ac" value="pc" title="生成电脑版" checked>
						<input type="radio" name="ac" value="wap" title="生成手机版">
                        <button class="layui-btn layui-btn-small layui-input-center" style="margin-top: 4px;margin-bottom: 4px;margin-left: 10px;" lay-submit lay-filter="">一键生成专题列表</button>
                    </div>
                </div>
            </form>
        </div>
    </fieldset>

    <fieldset style="margin-top: 10px;" class="layui-elem-field">
        <legend>指定专题生成</legend>
        <div class="layui-field-box">
            <form class="layui-form layui-form-pane layui-form-nosel" action="<?=site_url('vod/admin/html/topicshow_save')?>" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label">请选择专题</label>
                    <div class="layui-input-inline layui-input-inlinew3">
                        <select  multiple name="tid[]">
                        <?php
                            $query = $this->db->query("SELECT id,name FROM ".CS_SqlPrefix."vod_topic where yid=0 order by id desc limit 1000"); 
                            foreach ($query->result() as $row) { 
                                echo '<option value="'.$row->id.'">&nbsp;|—'.$row->name.'</option>';
                            }
                        ?>
						<option value=""></option>
                        </select>
                    </div>
                    <div class="fl layui-input-inlinew4" style="text-align: center;border:0px;">
						<input type="radio" name="ac" value="pc" title="生成电脑版" checked>
						<input type="radio" name="ac" value="wap" title="生成手机版">
                        <button class="layui-btn layui-btn-small" style="margin-top: 4px;margin-bottom: 4px;" lay-submit lay-filter="">开始生成选中</button>
                    </div>
                </div>
            </form>
        </div>
    </fieldset>

    <fieldset class="layui-elem-field">
        <legend>其他生产方式</legend>
        <div class="layui-field-box">
            <form class="layui-form layui-form-pane" action="<?=site_url('vod/admin/html/topicshow_save')?>" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label">按时间生成</label>
                    <div class="layui-input-inline layui-input-inlinew4">
                        <input name="kstime" id="kstime" placeholder="点击选择起始日期" onClick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD'})" type="text" value="" class="layui-input" /> 
                    </div>
                    <div class="layui-form-mid">-</div>
                    <div class="layui-input-inline layui-input-inlinew4">
                        <input name="jstime" id="jstime" placeholder="点击选择结束日期" onClick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD'})" type="text" value="" class="layui-input" /> 
                    </div>
					<div class="fl layui-input-inlinew4 wml5">
                        <select name="ac">
							<option value="pc">生成电脑版</option>
							<option value="wap">生成手机版</option>
                        </select>
                    </div>
                    <div class="layui-input-inline layui-input-inlinew" style="text-align: center;border:0px;">
                        <button class="layui-btn layui-btn-small layui-input-center" style="margin-top: 4px;margin-bottom: 4px;" lay-submit lay-filter="">开始生成</button>
                    </div>
                </div>
            </form>
            <form class="layui-form layui-form-pane" action="<?=site_url('vod/admin/html/topicshow_save')?>" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label">按ID生成</label>
                    <div class="layui-input-inline layui-input-inlinew4">
                        <input name="ksid" type="text" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" value="1" class="layui-input" /> 
                    </div>
                    <div class="layui-form-mid">-</div>
                    <div class="layui-input-inline layui-input-inlinew4">
                        <input name="jsid" type="text" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" value="10" class="layui-input" /> 
                    </div>
					<div class="fl layui-input-inlinew4 wml5">
                        <select name="ac">
							<option value="pc">生成电脑版</option>
							<option value="wap">生成手机版</option>
                        </select>
                    </div>
                    <div class="layui-input-inline layui-input-inlinew" style="text-align: center;border:0px;">
                        <button class="layui-btn layui-btn-small" style="margin-top: 4px;margin-bottom: 4px;" lay-submit lay-filter="">开始生成</button>
                    </div>
                </div>
            </form>
        </div>
    </fieldset>
    <script type="text/javascript">
        cscms.init();
        layui.use('laydate', function(){
            var laydate = layui.laydate;
            var start = {
                min: '2000-01-01'
                ,max: '2099-06-16'
                ,istoday: false
                ,choose: function(datas){
                }
            };
            document.getElementById('kstime').onclick = function(){
                start.elem = this;
                laydate(start);
            }
            document.getElementById('jstime').onclick = function(){
                start.elem = this
                laydate(start);
            }
          
        });
    </script>
</body>
</html>